*{
    margin: 0;
    padding: 0;
    user-select: none;
}
img{
    display: block;
    width: 100%;
    height: 100%;
}
body{
    position: relative;
    padding-top: 20px;
    background-color: #F4F4F4;
}
.shoppingCart{
    cursor: pointer;
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    right: 10px;
    top: calc(50vh - 25px);
    background-color: red;
    line-height: 50px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    z-index: 5000;
    box-shadow: 0 0 2px 2px red;
}
.all{
    width: 990px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    >div{
        &:nth-child(5n){
            margin-right: 0;
        }
    }
}
.allIn{
    display: none;
    position: absolute;
    z-index: 3000;
    padding: 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    background-color: #ccc;
    left: 0;
    top: 0;
    opacity: 0;
    transition: 0.5s;
    box-shadow: 0 0 5px 5px #ccc; 
    // animation: allIn 0.5s linear infinite;
    >div{
        &:nth-child(7n){
            margin-right: 0;
        }
    }
    @keyframes allIn {
        form{
            opacity: 0;
        }to{
            opacity: 1;
        }
    }
    @keyframes allOff {
        form{
            opacity: 1;
        }to{
            opacity: 0;
        }
    }
}
.item{
    position: relative;
    cursor: auto;
    background-color: white;
    width: 190px;
    height: 266px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    box-sizing: border-box;
    padding: 20px 10px;
    margin: 0 10px 10px 0;
    transition: 0.5s;
    .item-img{
        position: relative;
        width: 120px;
        height: 120px;
        &:hover{
            &::after{
                position: absolute;
                content: "";
                z-index: 100;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                background-color: rgba($color: #ffffff, $alpha: 0.1);
            }
        }
        >img{
            position: absolute;
            z-index: 100;
            left: 0;
            top: 0;
            transition: 0.5s;
            // animation: imgCont 0.5s linear forwards;
            @keyframes imgContOut {
                from{
                    transform: scale(1);
                }to{
                    transform: scale(0);
                }
            }
            @keyframes imgContIn {
                from{
                    transform: scale(0);
                }to{
                    transform: scale(1);
                }
            }
        }
    }
    .item-title{
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .item-footer{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        >svg{
            cursor: pointer;
            width: 20px;
            height: 20px;
            &:hover{
                >path{
                    fill: red;
                }
            }
        }
    }
}
